/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var DataSourceController = new Class({
    
    sources: new Array(),
    
    addSource: function(source){
        this.sources[this.sources.length] = source;
    },
    
    find: function(id){
        
        var source = null;
        
        Array.each(this.sources, function(tmpSource,key){
           if(tmpSource.getId() == id){
               source = tmpSource;
           } 
        });
        
        return source;
    }
    
});


